package com.hp.dao;

import com.hp.entity.Power;
import com.hp.entity.RolePowerVo;

import java.util.List;

public interface PowerDao {

    public void addPower(Power power);

    public void deleteAllParentIdIsNo();

    public void deleteAllParentIdIsNot();

    public List<Power> findAllByParent();

    public List<Power> findAllByRoleId(int id);

    public void deleteAllRolePowerByRid(int rid);

    public void addRolePower(List<RolePowerVo> rolePowerVos);

}
